import axios, { Axios } from 'axios'
const context = '/recipeservice'

/**
 * 获取 Materialprecisiontemplate 分页列表
 */
export function getMaterialprecisiontemplatePagination(data: any) {
  return axios.get(`${context}/materialprecisiontemplate/pagination`, {
    params: data,
  })
}

/**
 * 获取 Materialprecisiontemplate 所有数据
 */
export function getMaterialprecisiontemplateAllList(data: any) {
  return axios.get(`${context}/materialprecisiontemplate/all`, {
    params: data,
  })
}

/**
 * 获取 Materialprecisiontemplate 详情
 */
export function getMaterialprecisiontemplateDetailById(id: any) {
  return axios.get(`${context}/materialprecisiontemplate/${id}`, {
    params: { id },
  })
}

/**
 * 新增 Materialprecisiontemplate
 */
export function addMaterialprecisiontemplate(data: any) {
  return axios.post(`${context}/materialprecisiontemplate`, data)
}

/**
 * 修改 Materialprecisiontemplate
 */
export function updateMaterialprecisiontemplate(data: any) {
  return axios.put(`${context}/materialprecisiontemplate`, data)
}

/**
 * 删除 Materialprecisiontemplate
 */
export function batchRemoveMaterialprecisiontemplate(data: any) {
  return axios.post(`${context}/materialprecisiontemplate/batchRemove`, data)
}
